package com.itheima.HomeWork_day11;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/*
字节异常处理:

该异常处理的是

 */
public class CharExcp07 {

    public static void main(String[] args) {
        FileOutputStream fio=null;
        try {
            fio = new FileOutputStream("JavaEE_Code\\file.txt");
            fio.write(99);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            //判断文件流是否为空
            if (fio!=null){
                try {
                    fio.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }



        }


    }
}
